package com.zjd.dao;

import com.zjd.domain.Category;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface CategoryDao {

    @Select("SELECT * FROM tab_category")
    List<Category> selectCategorys();

    @Select("SELECT * FROM tab_category WHERE cid = #{cid}")
    Category selectCategoryByRouteId(Integer cid);

}
